package com.ambow.service;

import java.util.List;

import com.ambow.entity.Product;
import com.ambow.utils.PageResults;

public interface ProductService {
	//随机获取数条记录
	List<Product> getRand(String hql);
	//通过id查询
	Product QueryOne(String sql);
	//分页查询
	PageResults<Product> getPageByFetchedHql(String hql, String countHql, Integer pageNo, Integer pageSize);
}
